<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <meta charset="utf-8">
    <title>支付界面</title>
    <link href="css/bootstrap.css" rel="stylesheet" type="text/css">
    <link href="css/mystyle.css" rel="stylesheet" type="text/css">
    <script src="js/jquery-3.2.1.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
</head>

<body>
<!-- 顶部banner -->
<div class="container">
    <div class="banner">
        <ul class="nav nav-pills topmenu">
            <li role="presentation"><a href="${pageContext.request.contextPath}/productServlet">主页</a></li>
            <li role="presentation"><a href="CommodityRegistered.jsp">用户注册</a></li>
            <li role="presentation"><a href="CommodityForgetPassword.jsp">忘记密码</a></li>
            <li role="presentation"><a href="${pageContext.request.contextPath}/feedbackServlet?demand=showAll">意见反馈</a></li>
        </ul>
    </div>
</div>

<!--支付-->
<div class="container showMove">
    <div class="row">
        <div class="col-md-3">
            <div class="panel panel-info">
                <div class="panel-body text-center">
                    <table class="table table-bordered table-striped">
                        <tbody>
                        <tr>
                            <td rowspan="4"><img src="images/face/${sessionScope.loginCustomer.header}" width="100%"
                                                 alt=""/></td>
                            <td><a href="${pageContext.request.contextPath}/shoppingCartServlet?demand=show">我的购物车</a>
                            </td>
                        </tr>
                        <tr>
                            <td><a href="${pageContext.request.contextPath}/ordersServlet?demand=show&user=${sessionScope.loginCustomer.name}">我的订单</a></td>
                        </tr>
                        <tr>
                            <td><a href="${pageContext.request.contextPath}/feedbackServlet?demand=showAll">意见反馈</a></td>
                        </tr>
                        <tr>
                            <td><a href="CommodityCustomerMaterial.jsp">修改我的资料</a></td>
                        </tr>
                        <tr>
                            <td>${sessionScope.loginCustomer.name}</td>
                            <td><a href="${pageContext.request.contextPath}/productServlet">退出</a></td>
                        </tr>
                        <tr>
                            <td colspan="2">${requestScope.CookieShowTime_msg}</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        <div class="col-md-9">
            <div class="container-fluid text-center">

                <!--付款方式-->
                <table class="table table-bordered table-striped">
                    <form class="form-horizontal" method="post">
                        <tbody>
                        <tr>
                            <td colspan="2" align="left" class="bg-info"><img src="images/logo/payment.JPG">付款方式</td>
                        </tr>
                        <tr>
                            <td>请选择您的付款方式</td>
                            <td>
                                <select class="form-control" name="payment">
                                    <c:forEach items="${sessionScope.paymentMethodList}" var="payment">
                                        <option>${payment.payment}</option>
                                    </c:forEach>
                                    <%--<option>支付宝</option>
                                    <option>工商银行</option>
                                    <option>中国农行</option>
                                    <option>建设银行</option>--%>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td>请输入您的地址</td>
                            <td><input name="address" type="text" class="form-control" id="text" placeholder="西天道路花果山神圣村"></td>
                        </tr>
                        <tr>
                            <td>请输入您的Email</td>
                            <td>
                                <div class="form-group">
                                    <input name="email" type="email" class="form-control" id="exampleInputEmail" placeholder="Email">
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>请输入订单备注</td>
                            <td>
                                <div class="form-group">
                                    <input name="message" type="text" class="form-control" placeholder="备注">
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <div class="row">
                                    <input formaction="${pageContext.request.contextPath}/ordersServlet?demand=pay&user=${sessionScope.loginCustomer.name}" class="btn btn-info" type="submit" style="margin-left: 250px" value="确定付款" />
                                    <input formaction="${pageContext.request.contextPath}/CommodityShoppingCart.jsp" class="btn btn-info" type="submit" style="margin-left: 100px" value="取消付款" />
<%--                                    <button class="btn btn-info" type="button" style="margin-left: 250px">确定付款</button>--%>
<%--                                    <a href="CommodityShoppingCart.jsp" class="btn btn-info" type="button" style="margin-left: 100px">取消付款</a>--%>
<%--                                    <button formaction="${pageContext.request.contextPath}/CommodityShoppingCart.jsp" class="btn btn-info" type="button" style="margin-left: 250px">确定付款</button>--%>
<%--                                    <button href="CommodityShoppingCart.jsp" class="btn btn-info" type="button" style="margin-left: 250px">确定付款</button>--%>
                                </div>
                            </td>
                        </tr>
                        </tbody>
                    </form>
                </table>
            </div>
        </div>
    </div>
</div>

<div class="footerbg center showMove">
    <p> Designed and built with all the love in the world by @mdo and @fat. Maintained by the core team with the help of
        our contributors.</p>
</div>

</body>
</html>

